Type.registerNamespace("BM");

BM.Remove = function(determinant, actionInfo) {
    BM.Remove.initializeBase(this, [determinant, actionInfo]);
}

BM.Remove.prototype = {
    run: function() {
        if (this.getItem() == null) return;
        this.getItem().setOptional();
        this.getItem().remove();
        this.dependant.clearItem();
    }
}

BM.Remove.registerClass("BM.Remove", BM.Action);

